﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Main.Master" AutoEventWireup="true" CodeBehind="AddAuction.aspx.cs" Inherits="ArtClub.View.AddAuction" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainMenu" runat="server">
    <li><a href="BrowseCatalogue.aspx">Art Pieces</a>
    </li>
    <li><a href="BiddingInfoPage.aspx">Pieces for Bidding</a>
    </li>
    <li><a href="ChangeSystemDatePage.aspx">Subscription</a>
    </li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageName" runat="server">
    Create Auction
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Submenu" runat="server">
    <a href="BiddingInfoPage.aspx" class="list-group-item">Bidding Info Page</a>

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
        

        <div class="row">
            <div class="col-xs-6 col-md-2">Name: </div>
            <div class="col-xs-6 col-md-4" runat="server" id="name"></div>
        </div>
        <div class="row">
            <div class="col-xs-6 col-md-2">Artist: </div>
            <div class="col-xs-6 col-md-4" runat="server" id="artist"></div>
        </div>
        <div class="row">
            <div class="col-xs-6 col-md-2">Original Price: </div>
            <div class="col-xs-6 col-md-4" runat="server" id="oPrice"></div>
        </div>
          <br />
        <div class="row">
            <div class="col-xs-6 col-md-2">Start Day:</div>
            <div class="col-xs-6 col-md-4">
                <asp:Calendar ID="calendar" runat="server" ></asp:Calendar>
                
            </div>
        </div>
        <br />
        <div class="row">
            <div class="col-xs-6 col-md-2">Start Time: </div>
            <div class="col-xs-6 col-md-2"> 
                Hour: 
                <asp:DropDownList ID="hour" class="form-control" runat="server"></asp:DropDownList>
                 </div>
                <div class="col-xs-6 col-md-2"> 
                Min: 
                <asp:DropDownList ID="min" class="form-control" runat="server"></asp:DropDownList>
        </div>
        </div>
        <br />
        <div class="row">
            <div class="col-xs-6 col-md-2">Duration(min):</div>
            <div class="col-xs-6 col-md-4">
                <asp:TextBox ID="txtDuration" class="form-control" runat="server"></asp:TextBox>
            </div>
            <asp:RegularExpressionValidator ID="revDuration" runat="server" ControlToValidate="txtDuration" ValidationExpression="^[0-9]+$" SetFocusOnError="true" ErrorMessage="Number!"></asp:RegularExpressionValidator>
        </div>

        <br />
        <div class="row">
            <div class="col-xs-6 col-md-2">Start Price(kr):</div>
            <div class="col-xs-6 col-md-4">
                <asp:TextBox ID="txtStartPrice" class="form-control" runat="server"></asp:TextBox>
            </div>
            <asp:RegularExpressionValidator ID="revPrice" runat="server" ControlToValidate="txtStartPrice" ValidationExpression="^[0-9]+$" SetFocusOnError="true" ErrorMessage="Number!"></asp:RegularExpressionValidator>
        </div>
        <br />
         <div class="row">
            <div class="col-xs-6 col-md-2">Min bid Step:</div>
            <div class="col-xs-6 col-md-4">
                <asp:TextBox ID="txtStep" class="form-control" runat="server"></asp:TextBox>
            </div>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtStep" ValidationExpression="^[0-9]+$" SetFocusOnError="true" ErrorMessage="Number!"></asp:RegularExpressionValidator>
        </div>
        <br />
        <div class="row">
            <asp:Button class="btn btn-primary" runat="server" ID="btnAdd" Text="Create Auction" OnClick="btnAdd_Click" />
        </div>


    </form>


</asp:Content>
